package com.yunfeisoft.business.model;

import com.yunfeisoft.common.base.BaseModel;
import com.yunfeisoft.common.sql.record.TransientField;
import com.yunfeisoft.common.utils.DateUtils;
import org.springframework.util.ObjectUtils;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * ClassName: NewElderPreparation
 * Description: 新入院长者准备表
 *
 * @Author: Jackie liu
 * Date: 2020-05-22
 */
@Entity
@Table(name = "TT_NEW_ELDER_PREPARATION")
public class NewElderPreparation extends BaseModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 老人入住关联id
     */
    @Column
    private String elderId;

    @TransientField
    private String elderName;

    public String getElderName() {
        return elderName;
    }

    public void setElderName(String elderName) {
        this.elderName = elderName;
    }

    @TransientField
    private String roomNum;

    public String getRoomNum() {
        return roomNum;
    }

    public void setRoomNum(String roomNum) {
        this.roomNum = roomNum;
    }

    /**
     * 入院时间
     */
    @Column
    private Date entryDate;

    public String getEntryDateStr() {
        if (ObjectUtils.isEmpty(entryDate)) {
            return null;
        }
        return DateUtils.dateToString(entryDate);
    }

    /**
     * 物品准备
     */
    @Column
    private String itemPreparation;

    /**
     * 检查卫生
     */
    @Column
    private String checkHygiene;

    /**
     * 记录本
     */
    @Column
    private String notebook;

    /**
     * 电表度数
     */
    @Column
    private Integer powerMeter;

    /**
     * 评估
     */
    @Column
    private String assessment;

    /**
     * 打名字
     */
    @Column
    private String printName;

    /**
     * 加微信
     */
    @Column
    private String wechat;

    /**
     * 入院须知
     */
    @Column
    private String admissionNotice;

    /**
     * 其他特殊情况
     */
    @Column
    private String otherSpecialCircumstances;


    public String getElderId() {
        return elderId;
    }

    public void setElderId(String elderId) {
        this.elderId = elderId;
    }

    public Date getEntryDate() {
        return entryDate;
    }

    public void setEntryDate(Date entryDate) {
        this.entryDate = entryDate;
    }

    public String getItemPreparation() {
        return itemPreparation;
    }

    public void setItemPreparation(String itemPreparation) {
        this.itemPreparation = itemPreparation;
    }

    public String getCheckHygiene() {
        return checkHygiene;
    }

    public void setCheckHygiene(String checkHygiene) {
        this.checkHygiene = checkHygiene;
    }

    public String getNotebook() {
        return notebook;
    }

    public void setNotebook(String notebook) {
        this.notebook = notebook;
    }

    public Integer getPowerMeter() {
        return powerMeter;
    }

    public void setPowerMeter(Integer powerMeter) {
        this.powerMeter = powerMeter;
    }

    public String getAssessment() {
        return assessment;
    }

    public void setAssessment(String assessment) {
        this.assessment = assessment;
    }

    public String getPrintName() {
        return printName;
    }

    public void setPrintName(String printName) {
        this.printName = printName;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getAdmissionNotice() {
        return admissionNotice;
    }

    public void setAdmissionNotice(String admissionNotice) {
        this.admissionNotice = admissionNotice;
    }

    public String getOtherSpecialCircumstances() {
        return otherSpecialCircumstances;
    }

    public void setOtherSpecialCircumstances(String otherSpecialCircumstances) {
        this.otherSpecialCircumstances = otherSpecialCircumstances;
    }


}